<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>科院酒店预订管理系统</title>
		<!-- Bootstrap core CSS -->
		<link   th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
		<!-- <link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->
		<!-- Custom styles for this template -->
		<link th:href="@{/css/dashboard.css}" rel="stylesheet">

	</head>

	<body>
	<div th:insert="~{admin/commons/commons::nav}"></div>

		<div class="container-fluid">
			<div class="row">
				<div th:insert="~{admin/commons/commons::sidebar}"></div>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
					<h1 style="margin-bottom: 20px">添加用户</h1>
					<div class="table-responsive">
						<form th:action="@{/toAddUser}" method="post">
							<!--<div class="form-group">-->
								<!--<lable>用户名称</lable>-->
								<!--<input type="text" name="id" class="form-control" placeholder="请输入用户名" required>-->
							<!--</div>-->
							<div class="form-group">
								<lable>用户名称</lable>
								<input type="text" name="username" class="form-control" placeholder="请输入用户名" required>
							</div>
							<div class="form-group">
								<lable>用户密码</lable>
								<input type="password" name="password" class="form-control" placeholder="请输入用户密码" required>
							</div>
							<div class="form-group">
								<lable>权限</lable>
								<select class="form-control" name="roleId">
									<option th:each="roles:${role}" th:text="${(roles.getId())==1?'超级管理员':'管理员'}" th:value="${roles.getId()}"></option>
								</select>
							</div>
							<div class="form-group">
								<lable>电话号码</lable>
								<input type="text" name="phone" class="form-control" placeholder="请输入电话号码" required>
							</div>
							<div class="form-group">
								<lable>性别</lable>
								<div class="form-check form-check-inline">
									<input class="form-check-input" type="radio" name="sex" value="1" >
									<lable class="form-check-label">男</lable>
								</div>
								<div class="form-check form-check-inline">
									<input class="form-check-input" type="radio" name="sex" value="0" >
									<lable class="form-check-label">女</lable>
								</div>
							</div>
							<div class="form-group">
								<lable>年龄</lable>
								<input type="text" name="age" class="form-control" placeholder="请输入年龄" required>
							</div>
							<div class="form-group">
								<lable>地址</lable>
								<input type="text" name="address" class="form-control" placeholder="请输入地址" required>
							</div>
							<button type="submit"  class="btn btn-primary" >添加</button>
						</form>
					</div>
				</main>
			</div>
		</div>
		<!-- Bootstrap core JavaScript
    ================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
		<script type="text/javascript" th:src="@{/js/jquery-3.2.1.slim.min.js}"></script>
		<script type="text/javascript" th:src="@{/js/popper.min.js}"></script>
		<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
		<!-- Icons -->
		<script type="text/javascript" th:src="@{/js/feather.min.js}"></script>
		<script>
			feather.replace()
		</script>
	</body>
</html>
